home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / games / locusdem.zip / SETUPMNU.SCR < prev    next >
Text File  |  1995-11-07  |  4KB  |  110 lines

  1. ; This file uses Mike D.'s scripting routines to create a menu
  2. ; hierarchy.
  3.  
  4. ; FORMAT:
  5. ; MENU (menu#1_Title, <NONE/parentMenuName>,
  6. ;       entry#1_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
  7. ;       entry#2_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
  8. ;       .
  9. ;       .
  10. ;       .
  11. ;       entry#n_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
  12. ;       MENU_END)
  13. ;
  14. ; MENU (menu#2_Title, etc.)
  15. ;
  16. ; ...and so on.
  17.  
  18. ; IMPORTANT NOTES:
  19. ;   --When building the hierarchy,  setup uses non-case-sensetive
  20. ;       strings to identify parents and children.  So you MUST NOT
  21. ;       have two entries or menus with the same title!!
  22. ;
  23. ;   --The root level menu will have 'None' for its parent.  All other
  24. ;       windows can have anything here.  At the moment,  this field
  25. ;       isn't used for anything.  In the future,  it could provide
  26. ;       a means to identify non-unique menu entries.
  27. ;
  28. ;   --All entries in a menu either call a child menu or a function.
  29. ;       The <SUBMENU/FUNCTION/FLYMENU> field determines the behavior
  30. ;       for the corresponding entry.  If you enter SUBMENU,  the name
  31. ;       in the first field determines which submenu the entry will
  32. ;       call. You need no third field in this case (and should not
  33. ;       enter one). If you enter FLYMENU,  the third field defines
  34. ;       a function which generates a menu on the fly and tries to
  35. ;       attach it to the entry node. Writing FUNCTION to this field
  36. ;       causes the entry to call the function linked to the name
  37. ;       in the third field (the  linkage takes place in a list in the
  38. ;       list in the menuFns.c file).
  39. ;
  40. ;  A simple example follows.
  41.  
  42. MENU (Main Menu, None,
  43.   Video Options, SUBMENU,
  44.   Sound Options, SUBMENU,
  45.   Music Options, SUBMENU,
  46.   Read README.TXT, FUNCTION, readReadMe,
  47.   Play Locus, FUNCTION, playLocus,
  48.   Quit, FUNCTION, quit,
  49.   MENU_END)
  50.  
  51.         MENU (Video Options, Main Menu,
  52.                 Resolution, SUBMENU,
  53.                 Head Mounted Display, SUBMENU,
  54.                 Previous Menu, FUNCTION, backUp,
  55.                 Play Locus, FUNCTION, playLocus,
  56.                 Quit, FUNCTION, quit,
  57.                 MENU_END)
  58.  
  59.                 MENU (Resolution, Video Options,
  60.                         320x200, FUNCTION, setRes,
  61.                         640x480, FUNCTION, setRes,
  62.                         Previous Menu, FUNCTION, backUp,
  63.                         Play Locus, FUNCTION, playLocus,
  64.                         Quit, FUNCTION, quit,
  65.                         MENU_END)
  66.  
  67.                 MENU (Head Mounted Display, Video Options,
  68.                         Choose Type, SUBMENU,
  69.                         Previous Menu, FUNCTION, backUp,
  70.                         Play Locus, FUNCTION, playLocus,
  71.                         Quit, FUNCTION, quit,
  72.                         MENU_END)
  73.  
  74.                         MENU (Choose Type, Head Mounted Display,
  75.                                 No HMD, FUNCTION, setHMD,
  76.                                 Virtual I/O i*glasses, FUNCTION, setHMD,
  77.                                 Forte VXF1, FUNCTION, setHMD,
  78.                                 VictorMaxx CyberMaxx, FUNCTION, setHMD,
  79.                                 Previous Menu, FUNCTION, backUp,
  80.                                 Play Locus, FUNCTION, playLocus,
  81.                                 Quit, FUNCTION, quit,
  82.                                 MENU_END)
  83.  
  84.         MENU (Sound Options, Main Menu,
  85.                 Sound Card, SUBMENU,
  86.                 Set IRQ, FLYMENU, buildIRQmenu,
  87.                 Set DMA, FLYMENU, buildDMAmenu,
  88.                 Set Port, FLYMENU, buildDIGIportMenu,
  89.                 Detect Hardware, FUNCTION, autodetectSound,
  90.                 Detect Settings, FUNCTION, autodetectSettings,
  91.                 Test Sound, FUNCTION, testSound,
  92.                 Previous Menu, FUNCTION, backUp,
  93.                 Play Locus, FUNCTION, playLocus,
  94.                 Quit, FUNCTION, quit,
  95.                 MENU_END)
  96.  
  97.         MENU (Music Options, Main Menu,
  98.                 MIDI Device, FLYMENU, chooseMidiDevice,
  99.                 Set MIDI Port, FLYMENU, setMidiPort,
  100.                 Previous Menu, FUNCTION, backUp,
  101.                 Play Locus, FUNCTION, playLocus,
  102.                 Quit, FUNCTION, quit,
  103.                 MENU_END)
  104.  
  105.  
  106.  
  107. ENDSCRIPT
  108.  
  109.  
  110.